package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.BlackStatus;
import com.wanlian.netty.msg.MsgType;

/**
 * 设置防火墙黑名单是否打开
 */
public class BlackStatusSetMsg extends BaseMsg {
    private BlackStatus status;

    public BlackStatusSetMsg(){
        super();
        this.setType(MsgType.DEVICE_BLACK_STATUS_SET);
    }

    //this.setContent(JsonStringUtil.writeValueAsString(bOpen));


    public BlackStatus getStatus() {
        return status;
    }

    public void setStatus(BlackStatus status) {
        this.status = status;
        this.setContent(JsonStringUtil.writeValueAsString(status));
    }
}
